package com.sky.service;


import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {

        //新增地址
        void addAddress(AddressBook addressBook);

        //查询地址
        List<AddressBook> listAddress();


        //根据ID修改地址
        void updateAddress(AddressBook addressBook);

        //根据ID删除地址
        void deleteAddress(Long id);

        //根据ID查询地址
        AddressBook getAddress(Long id);

        //查询默认地址
        List<AddressBook> defaultAddress();

        //设置默认地址
        void setDefaultAddress(AddressBook addressBook);
}
